//
//  UserInfoTableViewCell.m
//  F50
//
//  Created by zack on 15/5/18.
//  Copyright (c) 2015年 ZACK. All rights reserved.
//

#import "UserInfoTableViewCell.h"

@implementation UserInfoTableViewCell

- (void)awakeFromNib {
    // Initialization code
}
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.contentView.backgroundColor = RGB(35, 91, 133);
        UILabel *line1 = [[UILabel alloc]initWithFrame:CGRectMake(0, 1, WIDTH, 1)];
        line1.backgroundColor = RGB(112, 159, 204);
        [self.contentView addSubview:line1];
      
        
        
        
        self.chanceLab = [[UILabel alloc]initWithFrame:CGRectMake(10, 10, 150, 20)];
        self.chanceLab.textColor = [UIColor whiteColor];
        [self.contentView addSubview:self.chanceLab];
        
        self.infoLab = [[UILabel alloc]initWithFrame:CGRectMake(170, 10, WIDTH - 190, 20)];
        self.infoLab.textColor = [UIColor whiteColor];
        self.infoLab.textAlignment = NSTextAlignmentRight;
//        self.infoLab.hidden = YES;
        self.infoLab.font = [UIFont systemFontOfSize:14];
        [self.contentView addSubview:self.infoLab];
        
        self.view = [[UIImageView alloc]initWithFrame:CGRectMake(WIDTH - 20, 10, 15, 20)];
        self.view.image = [UIImage imageNamed:@"go_light"];
        
        [self.contentView addSubview:self.view];
        
        UILabel *line = [[UILabel alloc]initWithFrame:CGRectMake(0, 43, WIDTH, 1)];
        line.backgroundColor = RGB(112, 159, 204);
        [self.contentView addSubview:line];
    }
    return self;;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
